﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Company_useList.aspx.cs"
    Inherits="TRPOP.CRM.Web.Company_useList" %>

<%@ Register Src="~/Controls/UC_Pager.ascx" TagName="UC_Pager" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>客户分配管理</title>
    <script src="../Scripts/utils.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="welcomBox">
        <div class=" welcomCont listPadding">
            <p class=" mb5 c_grey postion">
                您的当前位置：<a href="../welcome.aspx" title="首页">首页</a> > <a href="#" title="公海">公海</a></p>
            <div class="listTit">
                <div class=" fl listTit_l">
                </div>
                <div class=" fl listTit_c">
                    <h4 class="fl f14 fb">
                        公海</h4>
                </div>
                <div class=" fr listTit_r">
                </div>
            </div>
            <div class="listCon listCon_padding">
                <table width="100%" border="0" class="tableBox">
                    <thead>
                        <tr>
                            <td colspan="8" class="findRow">
                                <div class="fr pr10 findRow_right">
                                    <asp:TextBox ID="txtName" runat="server" CssClass="f12 searchtxtName" Text="输入关键字"
                                        onclick="removeValue(this);"></asp:TextBox>
                                    <asp:Button ID="btnSearch" runat="server" Text="查 询" CssClass="findBtn" OnClick="btnSearch_Click" />
                                </div>
                            </td>
                        </tr>
                        <tr class="f12 tableTit">
                            <th width="3.7%" class="pl10 pr10 fb bl1ff br1ce">
                                &nbsp;
                            </th>
                            <th width="25%" class="tc fb br1ce">
                                公司名称
                            </th>
                            <th width="5%" class="tc fb br1ce">
                                状态
                            </th>
                            <th width="10%" class="tc fb br1ce">
                                客户类别
                            </th>
                            <th width="10%" class="tc fb br1ce">
                                客户等级
                            </th>
                            <th width="10%" class="tc fb br1ce">
                                客户来源
                            </th>
                            <th width="10%" class="tc fb br1ce">
                                添加时间
                            </th>
                            <th class="tc fb br1ff">
                                客户分配
                            </th>
                        </tr>
                    </thead>
                    <tbody id="tab">
                        <asp:Repeater runat="server" ID="rptList">
                            <ItemTemplate>
                                <tr class="f12">
                                    <td class="pl10 pr10">
                                        <input id="delid" name="delid" type="checkbox" value="<%#Eval("iCompanyID")%>" />
                                    </td>
                                    <td class="tc">
                                        <a href='../Company/Company_view.aspx?id=<%#Eval("iCompanyID")%>'>
                                            <%#Eval("nvcCompanyName")%>
                                        </a>
                                    </td>
                                    <td class="tc">
                                        <%#TRPOP.CRM.Component.Common.SystemConst.GetCompanyStatusName(Convert.ToInt32(Eval("iCompanyStatus")))%>
                                    </td>
                                    <td class="tc">
                                        <%#Eval("nvcCompanyCategoryName")%>
                                    </td>
                                    <td class="tc">
                                        <%#Eval("nvcCompanyGradeName")%>
                                    </td>
                                    <td class="tc">
                                        <%#Eval("nvcCompanySourceName")%>
                                    </td>
                                    <td class="tc">
                                        <%#Convert.ToDateTime(Eval("dtCreationTime")).ToString("yyyy-MM-dd")%>
                                    </td>
                                    <td class="tc pr10 c_blue2 br1ff">
                                        <%#TRPOP.Common.StringExtension.ToBool(Eval("bIsEnable").ToString()) ? Convert.ToDateTime(Eval("dtStartTime")).ToString("yyyy-MM-dd") + " -  " + Convert.ToDateTime(Eval("dtEndTime")).ToString("yyyy-MM-dd") : "无"%>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </tbody>
                    <tfoot>
                        <tr>
                            <td colspan="8" class="btnone">
                                <div class="f12 tableOp">
                                    <div class="fl pl10 findRow_left">
                                        <input type="checkbox" name="chkall" value="全选/取消" onclick="CheckAll(this.form)"
                                            id="chkall" /><span class="f12 ml5">全选/取消</span> &nbsp;&nbsp;<span class="f12 ml5">
                                                将所选客户添加进</span>
                                        <asp:DropDownList ID="ddlEmployee" CssClass="searchddl" runat="server" Height="19px"
                                            Width="135px">
                                        </asp:DropDownList>
                                        <asp:Button ID="btnSubmit" runat="server" Text="执 行" CssClass="f12 deleteBtn" OnClientClick="if(IsCheckBoxChecked(this.form)){return confirm('你确定要执行此操作吗？')}else{return false;}"
                                            OnClick="btnSubmit_Click" />
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="8">
                                <div class="f12 tablePage">
                                    <uc1:UC_Pager ID="Pager" OnPageChanged="UC_PagerChanged" runat="server" />
                                </div>
                            </td>
                        </tr>
                    </tfoot>
                </table>
            </div>
        </div>
    </div>
    <script type="text/javascript">
<!--
        var Ptr = document.getElementById("tab").getElementsByTagName("tr");
        function $() {
        }
        window.onload = $;
        for (var i = 0; i < Ptr.length; i++) {
            Ptr[i].onmouseover = function () {
                this.tmpClass = this.className;
                this.className = "f12 js_bgColor";

            };
            Ptr[i].onmouseout = function () {
                this.className = this.tmpClass;
            };
        }
//-->
    </script>
    </form>
</body>
</html>
